package com.jblog.core.service.blog;

import java.util.List;

import com.jblog.common.page.Pagination;
import com.jblog.core.model.blog.Post;
import com.jblog.core.model.blog.param.PostParam;

public interface PostService {

    public Post findById(Long id);

    public Post findByAlisa(String s);
    
    public List<Post> findByParam(PostParam p);

    public Pagination findByParamByPage(PostParam p);

    public List<Post> findPreviousAndNext(PostParam p);
    
    public Long count(PostParam p);

    public Long findMaxId();

    public void enDisable(Post e, boolean able);

    public void save(Post e);

    public void update(Post e);

    public void delete(Long id);
}
